package Quotation;

import java.io.Serializable;

/**
 * 证券行情类. 一个实例表示一只证券的行情
 */
public class Quotation implements Cloneable, Serializable{

	String exchId = "";//代表交易所，200-美股（us），100-港股（hk），51-深圳（sz），1-上海（sh）
    String stkName = "";//股票名字
    String stkId = "";//股票代码
    String newPrice = "";//当前价格
    String prevClosePrice = "";//昨收
    String openPrice = "";//开盘
    String volume = "";//成交量
    String sell = "";//外盘
    String buy = "";//内盘
	double buyPrice1 = 0d;//买1
	long buyQty1 = 0;//买1量
	double buyPrice2 = 0;//买2
	long buyQty2 = 0;//买2量
	double buyPrice3 = 0;//买3
	long buyQty3 = 0;//买3量
	double buyPrice4 = 0;//买4
	long buyQty4 = 0;//买4量
	double buyPrice5 = 0;//买5
	long buyQty5 = 0;//买5量
//	protected double buyPrice6 = quotaInfoArray[];
//	protected long buyQty6 = quotaInfoArray[];
//	protected double buyPrice7 = quotaInfoArray[];
//	protected long buyQty7 = quotaInfoArray[];
//	protected double buyPrice8 = quotaInfoArray[];
//	protected long buyQty8 = quotaInfoArray[];
//	protected double buyPrice9 = quotaInfoArray[];
//	protected long buyQty9 = quotaInfoArray[];
//	protected double buyPrice10 = quotaInfoArray[];
//	protected long buyQty10 = quotaInfoArray[];
	double sellPrice1 = 0;//卖1
	long sellQty1 = 0;//卖1量
	double sellPrice2 = 0;//卖2
	long sellQty2 = 0;//卖2量
	double sellPrice3 = 0;//卖3
	long sellQty3 = 0;//卖3量
	double sellPrice4 = 0;//卖4
	long sellQty4 = 0;//卖4量
	double sellPrice5 = 0;//卖5
	long sellQty5 = 0;//卖5量
//	protected double sellPrice6 = quotaInfoArray[];
//	protected long sellQty6 = quotaInfoArray[];
//	protected double sellPrice7 = quotaInfoArray[];
//	protected long sellQty7 = quotaInfoArray[];
//	protected double sellPrice8 = quotaInfoArray[];
//	protected long sellQty8 = quotaInfoArray[];
//	protected double sellPrice9 = quotaInfoArray[];
//	protected long sellQty9 = quotaInfoArray[];
//	protected double sellPrice10 = quotaInfoArray[];
//	protected long sellQty10 = quotaInfoArray[];
    String unknown0 = "";//未知
    String requstTime = "";//请求时间
    String risingfalling = "";//涨跌
    String risingfallingPercent = "";//涨跌%
    String highestPrice = "";//最高
    String minimumPrice = "";//最低
    String priceInfo = "";//最新价/成交量（手）/成交额（元）
    String knockQty = "";//成交量
    String knockAmt = "";//成交额
    String turnoverRate = "";//换手率
    String PERatio = "";//ttm市盈率
    String unknown = "";//未知
    String highestPrice1 = "";//最高
    String minimumPrice1 = "";//最低
    String amplitude = "";//振幅
    String circulationMarketValue = "";//流通市值
    String stkValue = "";//总市值
    String priceToBookRatio = "";//lf市净率
    String Limitupprice = "";//涨停价
    String Limitdownprice = "";//跌停价
    String volumeRatio = "";//量比
    String volumeRatio1 = "";//均价
    String averagePrice = "";//动态市盈率
    String dynamicPERatio = "";//静态市盈率
    String staticPERatio = "";//
    String unknown1 = "";//未知
    String unknown2 = "";//未知
    String unknown3 = "";//未知
    String Turnover = "";//成交额
    String unknown4 = "";//未知
    String unknown5 = "";//未知
    String unknown6 = "";//未知
    String unknown7 = "";//未知
    String unknown8 = "";//未知
    String unknown9 = "";//未知
    String unknown10 = "";//未知
    String unknown11 = "";//未知
    String unknown12 = "";//未知
    
	/**
	 * 获取主键
	 */
	public String getPrimaryKey() {
		return exchId + stkId;
	}

	public String getExchId() {
		return exchId;
	}
	public void setExchId(String exchId) {
		this.exchId = exchId;
	}
	public String getStkName() {
		return stkName;
	}
	public void setStkName(String stkName) {
		this.stkName = stkName;
	}
	public String getStkId() {
		return stkId;
	}
	public void setStkId(String stkId) {
		this.stkId = stkId;
	}
	public String getNewPrice() {
		return newPrice;
	}
	public void setNewPrice(String newPrice) {
		this.newPrice = newPrice;
	}
	public String getPrevClosePrice() {
		return prevClosePrice;
	}
	public void setPrevClosePrice(String prevClosePrice) {
		this.prevClosePrice = prevClosePrice;
	}
	public String getOpenPrice() {
		return openPrice;
	}
	public void setOpenPrice(String openPrice) {
		this.openPrice = openPrice;
	}
	public String getVolume() {
		return volume;
	}
	public void setVolume(String volume) {
		this.volume = volume;
	}
	public String getSell() {
		return sell;
	}
	public void setSell(String sell) {
		this.sell = sell;
	}
	public String getBuy() {
		return buy;
	}
	public void setBuy(String buy) {
		this.buy = buy;
	}
	public double getBuyPrice1() {
		return buyPrice1;
	}
	public void setBuyPrice1(double buyPrice1) {
		this.buyPrice1 = buyPrice1;
	}
	public long getBuyQty1() {
		return buyQty1;
	}
	public void setBuyQty1(long buyQty1) {
		this.buyQty1 = buyQty1;
	}
	public double getBuyPrice2() {
		return buyPrice2;
	}
	public void setBuyPrice2(double buyPrice2) {
		this.buyPrice2 = buyPrice2;
	}
	public long getBuyQty2() {
		return buyQty2;
	}
	public void setBuyQty2(long buyQty2) {
		this.buyQty2 = buyQty2;
	}
	public double getBuyPrice3() {
		return buyPrice3;
	}
	public void setBuyPrice3(double buyPrice3) {
		this.buyPrice3 = buyPrice3;
	}
	public long getBuyQty3() {
		return buyQty3;
	}
	public void setBuyQty3(long buyQty3) {
		this.buyQty3 = buyQty3;
	}
	public double getBuyPrice4() {
		return buyPrice4;
	}
	public void setBuyPrice4(double buyPrice4) {
		this.buyPrice4 = buyPrice4;
	}
	public long getBuyQty4() {
		return buyQty4;
	}
	public void setBuyQty4(long buyQty4) {
		this.buyQty4 = buyQty4;
	}
	public double getBuyPrice5() {
		return buyPrice5;
	}
	public void setBuyPrice5(double buyPrice5) {
		this.buyPrice5 = buyPrice5;
	}
	public long getBuyQty5() {
		return buyQty5;
	}
	public void setBuyQty5(long buyQty5) {
		this.buyQty5 = buyQty5;
	}
	public double getSellPrice1() {
		return sellPrice1;
	}
	public void setSellPrice1(double sellPrice1) {
		this.sellPrice1 = sellPrice1;
	}
	public long getSellQty1() {
		return sellQty1;
	}
	public void setSellQty1(long sellQty1) {
		this.sellQty1 = sellQty1;
	}
	public double getSellPrice2() {
		return sellPrice2;
	}
	public void setSellPrice2(double sellPrice2) {
		this.sellPrice2 = sellPrice2;
	}
	public long getSellQty2() {
		return sellQty2;
	}
	public void setSellQty2(long sellQty2) {
		this.sellQty2 = sellQty2;
	}
	public double getSellPrice3() {
		return sellPrice3;
	}
	public void setSellPrice3(double sellPrice3) {
		this.sellPrice3 = sellPrice3;
	}
	public long getSellQty3() {
		return sellQty3;
	}
	public void setSellQty3(long sellQty3) {
		this.sellQty3 = sellQty3;
	}
	public double getSellPrice4() {
		return sellPrice4;
	}
	public void setSellPrice4(double sellPrice4) {
		this.sellPrice4 = sellPrice4;
	}
	public long getSellQty4() {
		return sellQty4;
	}
	public void setSellQty4(long sellQty4) {
		this.sellQty4 = sellQty4;
	}
	public double getSellPrice5() {
		return sellPrice5;
	}
	public void setSellPrice5(double sellPrice5) {
		this.sellPrice5 = sellPrice5;
	}
	public long getSellQty5() {
		return sellQty5;
	}
	public void setSellQty5(long sellQty5) {
		this.sellQty5 = sellQty5;
	}
	
	public String getUnknown0() {
		return unknown0;
	}
	public void setUnknown0(String unknown0) {
		this.unknown0 = unknown0;
	}
	public String getRequstTime() {
		return requstTime;
	}
	public void setRequstTime(String requstTime) {
		this.requstTime = requstTime;
	}
	public String getRisingfalling() {
		return risingfalling;
	}
	public void setRisingfalling(String risingfalling) {
		this.risingfalling = risingfalling;
	}
	public String getRisingfallingPercent() {
		return risingfallingPercent;
	}
	public void setRisingfallingPercent(String risingfallingPercent) {
		this.risingfallingPercent = risingfallingPercent;
	}
	public String getHighestPrice() {
		return highestPrice;
	}
	public void setHighestPrice(String highestPrice) {
		this.highestPrice = highestPrice;
	}
	public String getMinimumPrice() {
		return minimumPrice;
	}
	public void setMinimumPrice(String minimumPrice) {
		this.minimumPrice = minimumPrice;
	}
	public String getPriceInfo() {
		return priceInfo;
	}
	public void setPriceInfo(String priceInfo) {
		this.priceInfo = priceInfo;
	}
	public String getKnockQty() {
		return knockQty;
	}
	public void setKnockQty(String knockQty) {
		this.knockQty = knockQty;
	}
	public String getKnockAmt() {
		return knockAmt;
	}
	public void setKnockAmt(String knockAmt) {
		this.knockAmt = knockAmt;
	}
	public String getTurnoverRate() {
		return turnoverRate;
	}
	public void setTurnoverRate(String turnoverRate) {
		this.turnoverRate = turnoverRate;
	}
	public String getPERatio() {
		return PERatio;
	}
	public void setPERatio(String pERatio) {
		PERatio = pERatio;
	}
	public String getUnknown() {
		return unknown;
	}
	public void setUnknown(String unknown) {
		this.unknown = unknown;
	}
	public String getHighestPrice1() {
		return highestPrice1;
	}
	public void setHighestPrice1(String highestPrice1) {
		this.highestPrice1 = highestPrice1;
	}
	public String getMinimumPrice1() {
		return minimumPrice1;
	}
	public void setMinimumPrice1(String minimumPrice1) {
		this.minimumPrice1 = minimumPrice1;
	}
	public String getAmplitude() {
		return amplitude;
	}
	public void setAmplitude(String amplitude) {
		this.amplitude = amplitude;
	}
	public String getCirculationMarketValue() {
		return circulationMarketValue;
	}
	public void setCirculationMarketValue(String circulationMarketValue) {
		this.circulationMarketValue = circulationMarketValue;
	}
	public String getStkValue() {
		return stkValue;
	}
	public void setStkValue(String stkValue) {
		this.stkValue = stkValue;
	}
	public String getPriceToBookRatio() {
		return priceToBookRatio;
	}
	public void setPriceToBookRatio(String priceToBookRatio) {
		this.priceToBookRatio = priceToBookRatio;
	}
	public String getLimitupprice() {
		return Limitupprice;
	}
	public void setLimitupprice(String limitupprice) {
		Limitupprice = limitupprice;
	}
	public String getLimitdownprice() {
		return Limitdownprice;
	}
	public void setLimitdownprice(String limitdownprice) {
		Limitdownprice = limitdownprice;
	}
	public String getVolumeRatio() {
		return volumeRatio;
	}
	public void setVolumeRatio(String volumeRatio) {
		this.volumeRatio = volumeRatio;
	}
	public String getVolumeRatio1() {
		return volumeRatio1;
	}
	public void setVolumeRatio1(String volumeRatio1) {
		this.volumeRatio1 = volumeRatio1;
	}
	public String getAveragePrice() {
		return averagePrice;
	}
	public void setAveragePrice(String averagePrice) {
		this.averagePrice = averagePrice;
	}
	public String getDynamicPERatio() {
		return dynamicPERatio;
	}
	public void setDynamicPERatio(String dynamicPERatio) {
		this.dynamicPERatio = dynamicPERatio;
	}
	public String getStaticPERatio() {
		return staticPERatio;
	}
	public void setStaticPERatio(String staticPERatio) {
		this.staticPERatio = staticPERatio;
	}
	public String getUnknown1() {
		return unknown1;
	}
	public void setUnknown1(String unknown1) {
		this.unknown1 = unknown1;
	}
	public String getUnknown2() {
		return unknown2;
	}
	public void setUnknown2(String unknown2) {
		this.unknown2 = unknown2;
	}
	public String getUnknown3() {
		return unknown3;
	}
	public void setUnknown3(String unknown3) {
		this.unknown3 = unknown3;
	}
	public String getTurnover() {
		return Turnover;
	}
	public void setTurnover(String turnover) {
		Turnover = turnover;
	}
	public String getUnknown4() {
		return unknown4;
	}
	public void setUnknown4(String unknown4) {
		this.unknown4 = unknown4;
	}
	public String getUnknown5() {
		return unknown5;
	}
	public void setUnknown5(String unknown5) {
		this.unknown5 = unknown5;
	}
	public String getUnknown6() {
		return unknown6;
	}
	public void setUnknown6(String unknown6) {
		this.unknown6 = unknown6;
	}
	public String getUnknown7() {
		return unknown7;
	}
	public void setUnknown7(String unknown7) {
		this.unknown7 = unknown7;
	}
	public String getUnknown8() {
		return unknown8;
	}
	public void setUnknown8(String unknown8) {
		this.unknown8 = unknown8;
	}
	public String getUnknown9() {
		return unknown9;
	}
	public void setUnknown9(String unknown9) {
		this.unknown9 = unknown9;
	}
	public String getUnknown10() {
		return unknown10;
	}
	public void setUnknown10(String unknown10) {
		this.unknown10 = unknown10;
	}
	public String getUnknown11() {
		return unknown11;
	}
	public void setUnknown11(String unknown11) {
		this.unknown11 = unknown11;
	}
	public String getUnknown12() {
		return unknown12;
	}
	public void setUnknown12(String unknown12) {
		this.unknown12 = unknown12;
	}
	@Override
	public String toString() {
		return "Quotation [exchId=" + exchId + ", stkName=" + stkName
				+ ", stkId=" + stkId + ", newPrice=" + newPrice
				+ ", prevClosePrice=" + prevClosePrice + ", openPrice="
				+ openPrice + ", volume=" + volume + ", sell=" + sell
				+ ", buy=" + buy + ", buyPrice1=" + buyPrice1 + ", buyQty1="
				+ buyQty1 + ", buyPrice2=" + buyPrice2 + ", buyQty2=" + buyQty2
				+ ", buyPrice3=" + buyPrice3 + ", buyQty3=" + buyQty3
				+ ", buyPrice4=" + buyPrice4 + ", buyQty4=" + buyQty4
				+ ", buyPrice5=" + buyPrice5 + ", buyQty5=" + buyQty5
				+ ", sellPrice1=" + sellPrice1 + ", sellQty1=" + sellQty1
				+ ", sellPrice2=" + sellPrice2 + ", sellQty2=" + sellQty2
				+ ", sellPrice3=" + sellPrice3 + ", sellQty3=" + sellQty3
				+ ", sellPrice4=" + sellPrice4 + ", sellQty4=" + sellQty4
				+ ", sellPrice5=" + sellPrice5 + ", sellQty5=" + sellQty5
				+ ", unknown0=" + unknown0 + ", requstTime=" + requstTime
				+ ", risingfalling=" + risingfalling
				+ ", risingfallingPercent=" + risingfallingPercent
				+ ", highestPrice=" + highestPrice + ", minimumPrice="
				+ minimumPrice + ", priceInfo=" + priceInfo + ", knockQty="
				+ knockQty + ", knockAmt=" + knockAmt + ", turnoverRate="
				+ turnoverRate + ", PERatio=" + PERatio + ", unknown="
				+ unknown + ", highestPrice1=" + highestPrice1
				+ ", minimumPrice1=" + minimumPrice1 + ", amplitude="
				+ amplitude + ", circulationMarketValue="
				+ circulationMarketValue + ", stkValue=" + stkValue
				+ ", priceToBookRatio=" + priceToBookRatio + ", Limitupprice="
				+ Limitupprice + ", Limitdownprice=" + Limitdownprice
				+ ", volumeRatio=" + volumeRatio + ", volumeRatio1="
				+ volumeRatio1 + ", averagePrice=" + averagePrice
				+ ", dynamicPERatio=" + dynamicPERatio + ", staticPERatio="
				+ staticPERatio + ", unknown1=" + unknown1 + ", unknown2="
				+ unknown2 + ", unknown3=" + unknown3 + ", Turnover="
				+ Turnover + ", unknown4=" + unknown4 + ", unknown5="
				+ unknown5 + ", unknown6=" + unknown6 + ", unknown7="
				+ unknown7 + ", unknown8=" + unknown8 + ", unknown9="
				+ unknown9 + ", unknown10=" + unknown10 + ", unknown11="
				+ unknown11 + ", unknown12=" + unknown12 + "]";
	}
	
}
